﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AUV5.Web.Pages
{
    public partial class UserEmail : PageBaseFrontend
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }


        #region 修改邮箱

        protected void btnChangeEmail_Click(object sender, EventArgs e)
        {
            string email = txtNewEmail.Text.Trim();

            if (email == "")
            {
                lbMessage.Text = "请输入新邮箱";
                return;
            }

            BLL.UserInfoBLL.Instance.ChangeEmail(VerifiedUserID, email);

            base.SuccessInfo = "邮箱修改成功！请重新激活";

            Response.Redirect(Request.Url.ToString());
        }

        #endregion
    }
}